class Control {
    private state:string
    private hh() {
        
    }
    static staticState:string
    testFunc = ()=>{}
}
// SelectabControl 继承类 也会默认继承其 属性 并且可更改非私有化的属性的类型
interface SelectabControl extends Control {
    select():void,
    staticState:number, // 复写 类属性 字符串变为 数字
    state2:any
}

// 继承 Control 类 实现 SelectabControl
class Button extends Control implements SelectabControl {
    select(){
        console.log("select");
    }
}
// 继承 Control 则有了 private state属性
class TextBox extends Control {
    select(){}
}

// 报错提示 类型“ImageTest”缺少类型“SelectabControl”中的以下属性: 
// state, hh, testFunc
class ImageTest implements SelectabControl {
    select(){}
    staticState=222
}